package com.myBase.core;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.myBase.core.common.util.SystemDetails;

public class EbeiMain {

    private static Logger logger = LoggerFactory.getLogger(EbeiMain.class);

    /**
     * @param args
     */
    public static void main(String[] args) {
        SystemDetails.outputDetails();
        getLocalip();
        logger.info("开始启动EbeiMain");
        com.alibaba.dubbo.container.Main.main(args);
    }

    private static void getLocalip() {
        try {
            System.out.println("服务暴露的ip: " + java.net.InetAddress.getLocalHost().getHostAddress());
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
        }
    }
}
